package com.ipet.web.util;

import com.ipet.web.pojo.User;

public class UserThreadLocal {
	
	private static ThreadLocal<User> userThreadLocal = new ThreadLocal<User>();
	
	public static User getUser(){
	    return userThreadLocal.get();
	}
	
	public static void setUser(User user){
		userThreadLocal.set(user);
	}
}	
